<div id="registration">
	<?php echo $this->Form->create('Hoso', array('action' => 'dangkyonline','inputDefaults' => array(
        'error' => false
    ))); ?>
	<div id="generalInfo">
		<p>
			<span class="title">Thủ tục hành chính: </span>
			<span><?php echo
				$this->Form->input('tthc_id',array(
                                      'type' => 'select',
                                      'options' => $tthcs,
                                      'selected' => 1,
                                      'div' => false,
                                      'label' => false,
                                      'style' => 'width: 828px;'
                                  ));
				?>
			</span>
		</p>
		<p>
			<span class="title">Họ tên<span class="required">*</span></span>
			<span><?php echo $this->Form->input('hovaten', array('div' => false, 'label' => false));?></span>
		</p>
		<p>
			<span class="title">Số CMND<span class="required">*</span></span>
			<span><?php echo $this->Form->input('so_cmt', array('div' => false, 'label' => false));?></span>
			<span class="title2">Ngày Cấp<span class="required">*</span></span>
			<span><?php echo $this->Form->input('ngaycap', array('div' => false, 'label' => false, 'readonly' => true));?></span>
			<span class="title2">Nơi Cấp</span>
			<span><?php echo
				$this->Form->input('noi_cap',array(
                                      'type' => 'select',
                                      'options' => $thanhPhos,
                                      'selected' => '27',
                                      'div' => false,
                                      'label' => false
                                  ));
				?></span>
		</p>
		<p>
			<span class="title">Số điện thoại</span>
			<span><?php echo $this->Form->input('mobile', array('div' => false, 'label' => false));?></span>
			<span class="title2">Địa chỉ</span>
			<span><?php echo $this->Form->input('dia_chi', array('div' => false, 'label' => false, 'style' =>'width: 427px;'));?></span>
		</p>
	</div>
	<div id="buttons">
		<button class="button" id="cancel">Hủy</button>
		<button class="button" id="next">Đăng ký</button>
		<div class="clear"></div>
	</div>
	<?php echo $this->Form->end();?>
</div>
<script type="text/javascript">
	var form = $("#registration form");
	function ready() {
		$("#next").click(function(){
			submit('hosos/dangky', form);
		});
		$("#cancel").click(function(){
			submit('hosos/cancel', form);
		});
		
		$("#HosoNgaycap").datepicker({dateFormat: 'dd/mm/yy',changeYear: true});
	};
	$(document).ready(function () {ready();});
</script>